package dst.graph.explorer;

import dst.graph.GraphNode;
import dst.graph.GraphSearchable;

/**
 *
 * A tree explorer that exits the search right away and returns null
 * (i.e. a tree explorer that does nothing), the default explorer for the Tree
 * class if null was passed in as a TreeExplorer
 *
 * Fully Tested: N/A
 * Fully Documented: Yes
 * Created: Oct, 2011
 * Last Updated: Nov 12, 2011
 *
 * @author Shimu Wu
 */
public class EmptyExplorer<T> implements TreeExplorer<T> {

    public EmptyExplorer() {
    }

    /**
     * Always returns true (in terms of Tree searching behaviour,
     * the search terminates right away)
     *
     * @param node
     * @return true
     */
    @Override
    public boolean exploreCurrent(GraphSearchable<T> node) {
        return true;
    }

}
